﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/PopupDiv.master"
    AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="Jzy.Web.CRM.Visit.Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 80px;
            text-align: right;
        }
    </style>

    <script type="text/javascript">
        function CheckTime(source, args)
        {
            args.IsValid = Jzy.Web.CRM.Visit.Edit.CheckTime(args.Value).value;

        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript" src="../../common/Js/calendar.js"></script>

    <asp:Panel ID="pnlMain" runat="server" Width="100%" Style="height: 149px;">
        <div style="height: 10px; line-height: 10px;">
        </div>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" align="center">
            <tr>
                <td class="style1">
                    &nbsp;联系时间：
                </td>
                <td>
                    <asp:TextBox ID="InputTime" runat="server" CssClass="txt" Width="116px"></asp:TextBox>
                    &nbsp; 下次联系时间：<asp:TextBox ID="txtNextTime" CssClass="txt" runat="server"></asp:TextBox>
                    <asp:CustomValidator ID="CustomValidator2" runat="server" ClientValidationFunction="CheckTime"
                        ControlToValidate="InputTime" ErrorMessage="时间格式不正确" SetFocusOnError="True" Display="None"></asp:CustomValidator>
                    <asp:CustomValidator ID="CustomValidator3" runat="server" ClientValidationFunction="CheckTime"
                        ControlToValidate="InputTime" ErrorMessage="时间格式不正确" SetFocusOnError="True" Display="None"></asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    联系记录：
                </td>
                <td>
                    <asp:TextBox ID="Name" runat="server" Width="350px" CssClass="txt" Height="60px"
                        TextMode="MultiLine"></asp:TextBox>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style1">
                    对方联系人：
                </td>
                <td>
                    <asp:TextBox ID="ContactName" runat="server" CssClass="txt" Width="116px"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp; 联系方式：
                    <asp:DropDownList ID="ContactMethod" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" />
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
</asp:Content>
